<?php
if(in_array($controller, array("bookingStatus"))){
    if($this->input->server('REQUEST_METHOD')=='POST' && $this->input->post('submit') == 'search'){
        $data = array(
            'h_searchCustomersPhone'    =>  $this->input->post('h_searchCustomersPhone'),
            'h_booking_place_code'      =>  $this->input->post('h_booking_place_code'),
            'h_beginTime'               =>  strtotime($this->input->post('h_beginTime')),
            'h_endTime'                 =>  strtotime($this->input->post('h_endTime').' 24:00:00')
        );
        $this->session->set_userdata('h_bookingStatus', json_encode($data));
    }
}